(cua--rectangle-operation):
authorKim F. Storm <storm@cua.dk>
Tue, 14 May 2002 21:10:34 +0000 (21:10 +0000)
committerKim F. Storm <storm@cua.dk>
Tue, 14 May 2002 21:10:34 +0000 (21:10 +0000)
Don't highlight empty lines in rectangles.

lisp/emulation/cua-rect.el

index 777fefa58ebf178329a51a1d05313802e14cceae..a3e94dc207d56e5cc41e8020df898be7b1ff7a0e 100644 (file)
@@ -585,7 +585,8 @@ If command is repeated at same position, delete the rectangle."
                   (if (car (cdr (cdr sel)))
                       (setq v (null v))))
                 (if visible
-                    (funcall fct p m l r v)
+                   (unless (eolp)
+                       (funcall fct p m l r v))
                   (if v
                       (funcall fct p m l r)))))
           (set-marker m nil)